package com.luckdraw.service;

import org.nutz.lang.util.NutMap;

import com.luckdraw.domain.WithdrawalLog;

public interface TenpayService {
	
	/**
	 * 微信下单
	 * @param body	商品描述
	 * @param detail	商品详情
	 * @param out_trade_no	商户订单号
	 * @param total_fee	支付金额
	 * @param spbill_create_ip	客户端IP
	 * @param openId	微信用户openid
	 * @return
	 */
	public String unifiedOrder(String body,String detail,String out_trade_no,String total_fee,String spbill_create_ip,String openId);
	
	/**
	 * 提现
	 * @param openid
	 * @param momney
	 * @return
	 */
	public WithdrawalLog withdrawals(String openid,int momney);
	
	/**
	 * 生成jsapi支付请求信息
	 * @param prepayId 微信预支付订单ID
	 * @return
	 */
	public NutMap getJsPayRequestInfo(String prepayId);
	
	/**
	 * 验证微信签名合法性
	 * @param params
	 * @return
	 */
	public boolean checkSign(NutMap params);
	
}
